//
//  BDRedEnvelopeModel.h
//  BadBoy
//
//  Created by wen on 2017/7/13.
//  Copyright © 2017年 com.8xiong. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MJExtension/MJExtension.h>
#import "BDShopModel.h"

//0-全部 1-帖子红包 2-现金红包 3-积分红包
typedef NS_ENUM(NSUInteger, BdRedEnvelopeType) {
    BdRedEnvelopeTypeAll,
    BdRedEnvelopeTypePost,
    BdRedEnvelopeTypeMoney,
    BdRedEnvelopeTypePoint
};

@interface BDRedEnvelopeModel : NSObject

@property (nonatomic, assign) NSInteger my_id;
@property (nonatomic, assign) NSInteger user_id;
@property (nonatomic, assign) NSInteger template_id;
@property (nonatomic, assign) BdRedEnvelopeType type;
@property (nonatomic, assign) NSInteger status;
@property (nonatomic, strong) NSString *origin;
@property (nonatomic, strong) NSString *point;
@property (nonatomic, strong) NSString *limit_point;
@property (nonatomic, strong) NSString *money;
@property (nonatomic, strong) NSString *limit_money;
@property (nonatomic, assign) NSInteger end_at;
@property (nonatomic, assign) NSInteger agent_city_id;
@property (nonatomic, strong) BDShopModel *shop;

//以下为计算属性
@property (nonatomic, assign) BOOL isEffective;
@property (nonatomic, strong) NSString *endTimeString;
@property (nonatomic, strong) NSString *reason;

@property (nonatomic, strong) NSString *conditions;

@end
